public class test06 {
    public static void main(String[] args) {
    int[] arr={11,2,33,44,55,66};
    int index=SearchIndex(arr,33);
        System.out.println(index);



    }
    public static int SearchIndex(int[] arr,int data){
        for (int i = 0; i < arr.length; i++) {
            if(data==arr[i]){
                return i;

            }

        }
        return -1;


    }



}
